<template>
	<uni-popup ref="prope" type="center">
		<view class="exchange-wrap flex-a-c flex-j-a flex-column">
			<image :src="bgImage" mode="">
			</image>
			<view class="fanhui_box">
				x{{ qdNum }}
			</view>
			<view class="btn flex-c-c" @click="$u.throttle(submit, 1000)">
				<image  :src="qdEnterImg" mode="widthFix" />
			</view>
		</view>
	</uni-popup>
</template>

<script>
export default {
	props: ['qdNum', 'bgImage', 'qdEnterImg'],
	data() {
		return {
			code: ""
		};
	},
	methods: {
		close() {

		},
		open() {
			this.$refs.prope.open()
		},
		submit() {
			setTimeout(() => {
				this.$refs.prope.close()
			}, 1000)
			clearTimeout();

		}
	}
};
</script>

<style lang="scss" scoped>
.exchange-wrap {
	width: 628rpx;
	border-radius: 20rpx;
	position: relative;

	image {
		width: 628rpx;
	}

	.fanhui_box {
		position: absolute;
		width: 448rpx;
		height: 56rpx;
		font-size: 32rpx;
		color: #FFA100;
		line-height: 69rpx;
		text-align: right;
		transform: translate(-50%, -50%);
		left: 50%;
		top: 50%;
	}

	.btn {
		position: absolute;
		bottom: -96rpx;
		transform: translate(-50%, 0);
		left: 50%;
		height: 60rpx;
		width: 236rpx;
		border-radius: 16rpx;

		image {
			width: 100%;
			height: 100%;
		}
	}

}
</style>
